<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


/**
 * App\Models\ShopContent
 *
 * @property int $shop_id 店铺ID
 * @property string $content
 * @property-read \App\Models\Shop $shop
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopContent newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopContent newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopContent query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopContent whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopContent whereShopId($value)
 * @mixin \Eloquent
 */
class ShopContent extends Model
{
    protected $table = 'shop_content';
    protected $primaryKey = 'shop_id';
    protected $fillable = ['shop_id', 'content'];

    public $timestamps = false;

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function shop()
    {
        return $this->belongsTo(Shop::class, 'shop_id', 'shop_id');
    }
}
